package com.zysf.library_boot.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zysf.library_boot.dto.BookCommentDto;
import com.zysf.library_boot.dto.MyCommentDto;
import com.zysf.library_boot.entity.BookComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 31161
* @description 针对表【book_comment】的数据库操作Mapper
* @createDate 2024-12-29 01:41:52
* @Entity com.zysf.library_boot.entity.BookComment
*/
@Mapper
public interface BookCommentMapper extends BaseMapper<BookComment> {

    List<BookCommentDto> showBookComment(@Param("bookid") Integer bookid, @Param("offset") Integer offset, @Param("size") Integer size);

    IPage<MyCommentDto> getMyComment(@Param("id") Integer id, Page<MyCommentDto> page);
}




